package com.example.demo.service.impl;

import com.example.demo.entity.UserInfos;
import com.example.demo.mapper.UserInfosMapper;
import com.example.demo.service.UserInfosSerice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserInfoServiceimpl implements UserInfosSerice {
    @Autowired
    private UserInfosMapper userInfosMapper;

    public int addUserInfo(UserInfos userInfos){
        return userInfosMapper.addUserInfo(userInfos);
    }

    @Override
    public List<UserInfos> selectall() {
        return  userInfosMapper.selectall();
    }

    public int addUserMap(Map map) {
        return userInfosMapper.addUserinfoMap(map);
    }


}
